# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ubiquiti-probing
pkgver=5.c28f4c1
pkgrel=8
pkgdesc='A Ubiquiti device discovery tool.'
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
arch=('any')
url='https://github.com/headlesszeke/ubiquiti-probing'
license=('custom:unknown')
depends=('ruby')
makedepends=('git')
source=("git+https://github.com/headlesszeke/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 scan.rb "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

